<!--
 * @Author: your name
 * @Date: 2021-03-15 08:53:56
 * @LastEditTime: 2021-03-15 10:43:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \Python自然语言处理课堂案例d:\拓晟教育\课堂demo\vue11\day03\01v-if 使用场景.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>vue基础语法03</title>
    <script src="./js/vue.js"></script>
    <link rel="stylesheet" href="css/tab.css" />
  </head>
  <body>
    <div id="app">
      <div class="tab">
        <!--  tab栏  -->
        <ul>
          <li class="active">apple</li>
          <li class="">orange</li>
          <li class="">lemon</li>
        </ul>
        <!--  对应显示的图片 -->
        <div class="current"><img src="img/apple.png" /></div>
        <div class=""><img src="img/orange.png" /></div>
        <div class=""><img src="img/lemon.png" /></div>
      </div>
    </div>
    <script>
      // vue实例化
      new Vue({
        el: "#app", //作用范围
        data: {
          list: [
            {
              id: 1,
              title: "apple",
              path: "img/apple.png"
            },
            {
              id: 2,
              title: "orange",
              path: "img/orange.png"
            },
            {
              id: 3,
              title: "lemon",
              path: "img/lemon.png"
            }
          ]
        },
        methods: {}
      });
    </script>
  </body>
</html>
